package com.zone.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zone.service.mapper.VehicleFormMapper;
import com.zone.service.domain.VehicleForm;
import com.zone.service.service.IVehicleFormService;

/**
 * 车辆领用单Service业务层处理
 * 
 * @author liuyang
 * @date 2025-11-19
 */
@Service
public class VehicleFormServiceImpl implements IVehicleFormService 
{
    @Autowired
    private VehicleFormMapper vehicleFormMapper;

    /**
     * 查询车辆领用单
     * 
     * @param id 车辆领用单主键
     * @return 车辆领用单
     */
    @Override
    public VehicleForm selectVehicleFormById(Long id)
    {
        return vehicleFormMapper.selectVehicleFormById(id);
    }

    /**
     * 查询车辆领用单列表
     * 
     * @param vehicleForm 车辆领用单
     * @return 车辆领用单
     */
    @Override
    public List<VehicleForm> selectVehicleFormList(VehicleForm vehicleForm)
    {
        return vehicleFormMapper.selectVehicleFormList(vehicleForm);
    }

    /**
     * 新增车辆领用单
     * 
     * @param vehicleForm 车辆领用单
     * @return 结果
     */
    @Override
    public int insertVehicleForm(VehicleForm vehicleForm)
    {
        return vehicleFormMapper.insertVehicleForm(vehicleForm);
    }

    /**
     * 修改车辆领用单
     * 
     * @param vehicleForm 车辆领用单
     * @return 结果
     */
    @Override
    public int updateVehicleForm(VehicleForm vehicleForm)
    {
        return vehicleFormMapper.updateVehicleForm(vehicleForm);
    }

    /**
     * 批量删除车辆领用单
     * 
     * @param ids 需要删除的车辆领用单主键
     * @return 结果
     */
    @Override
    public int deleteVehicleFormByIds(Long[] ids)
    {
        return vehicleFormMapper.deleteVehicleFormByIds(ids);
    }

    /**
     * 删除车辆领用单信息
     * 
     * @param id 车辆领用单主键
     * @return 结果
     */
    @Override
    public int deleteVehicleFormById(Long id)
    {
        return vehicleFormMapper.deleteVehicleFormById(id);
    }
}
